package com.sinog.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * @desc 高级检索
 * @author -
 * @date -
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("tbsys_advansearch")
public class AdvanSearch extends Model<AdvanSearch> {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * sql文本
     */
    private String sqltext;
    /**
     * 创建时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    /**
     * 创建用户
     */
    private String createid;
    /**
     * 检索类型
     */
    private String type;

    /**
     * 描述
     * @return Serializable
     */
    @Override
    protected Serializable pkVal() {
        return id;
    }
}